package org.axed.user.client.util;

/**
 * Holds the information for one profiling step. 
 */
public class ProfileEntry {
	/**
	 * The name of the function or part entered
	 */
	public String name;

	/**
	 * The profiled calling stack this is. 
	 * Main routine has level=1, its subroutine level=2 and so on.
	 */
	public int level;

	/**
	 * System milliseconds this routine has been entered.
	 */ 
	public long begin;

	/**
	 * System milliseconds this routine has been exited.
	 */ 
	public long end;

	public ProfileEntry(String name, int level, long begin, long end) {
		this.name = name;
		this.level = level;
		this.begin = begin;
		this.end = end;
	}
}


